package daoImpl;

import java.util.ArrayList;
import java.util.List;

import model.Subscription;
import dao.SubscriptionDao;


public class SubscriptionDaoImpl implements SubscriptionDao{
	
	public List<Subscription>	subscriptions	= new ArrayList<Subscription>();
	
	
	public void add( Subscription subscription ) {
		subscriptions.add( subscription );
	}
	
	
	public List<Subscription> getSubscriptions() {
		return subscriptions;
	}
	
	
	public void delete( Subscription subscription ) {
		subscriptions.remove( subscription );
	}
	
	
	public void update( Subscription subscription ) {
	}


	@Override
	public void setMemento( List<Subscription> subs ) {
		this.subscriptions = subs;
	}
}
